export const DEBUG = process.env.NODE_ENV !== 'production';
export const COMMIT = process.env.COMMIT;
export const IS_LOCAL = process.env.NODE_ENV === 'local';
export const API_PREFIX = process.env.API_PREFIX; // API前缀，用于后端路由分发请求
export const SMS_TIMEOUT = 60; // 验证码倒计时
export const TOAST_TIME = 1500; // TOAST 显示时间1.5s
export const SERVICE_TEL = '400 0606 569';
export const SERVICE_TEL_ESCORT = '400 022 6620';
export const PINGAN_TEL = '95512';//平安车险电话
export const BAIDU_MAP_AK = 'dEQoM6svRm8mRGSRuap3bSRnqnEWNuCi';
export const OIL_STATION_BP = 'https://wxa02.bppc.com.cn/#/oillist';
export const HCZ_DOWNLOAD_LINK = 'https://aopsmsg.pingan.com.cn/carOnline/autoDownload.html';
// export const INSURANCE_ONLINE_CHAT = 'http://14.18.94.17:8999/im/text/148hkV.html';
export const INSURANCE_ONLINE_CHAT = 'http://kefu.zhongtianinfo.com:8999/im/text/148hkV.html';
export const PINGAN_BIND_CAR_H5 = DEBUG ? 'https://test-hcz-static.pingan.com.cn:1443/vehicle/addVehicle/index.html?source=64#/' : 'https://hcz-static.pingan.com.cn/vehicle/addVehicle/index.html?source=64#/';

const OLD_URL_PREFIX = process.env.OLD_H5_ENV || 'test1';

export const OLD_INVOICE = `https://m.youyuer.com/${OLD_URL_PREFIX}/app/cq/invoice`;
export const OLD_ORDER_LIST = `https://m.youyuer.com/${OLD_URL_PREFIX}/app/cq/orderList`;
export const OLD_COUPON_LIST = `https://m.youyuer.com/${OLD_URL_PREFIX}/app/cq/couponList`;
export const OLD_HELP = `https://m.youyuer.com/${OLD_URL_PREFIX}/app/cq/help`;
export const OLD_SHELL_GIFT = `https://m.youyuer.com/${OLD_URL_PREFIX}/app/cq/giftPackageShell`;
export const OLD_CQ_GIFT = `https://m.youyuer.com/${OLD_URL_PREFIX}/app/cq/giftPackageCq`;
export const OLD_CARD_EXCHANGE = `https://m.youyuer.com/${OLD_URL_PREFIX}/app/cq/card`;
export const OLD_COUPON_EXCHANGE = `https://m.youyuer.com/${OLD_URL_PREFIX}/app/cq/couponCard`;

export const OLD_QIJI_ORDER_LIST = `https://m.youyuer.com/${OLD_URL_PREFIX}/app/qiji/orderList`;
export const OLD_QIJI_INVOICE = `https://m.youyuer.com/${OLD_URL_PREFIX}/app/qiji/invoice`;
export const OLD_QIJI_SHELL_GIFT = `https://m.youyuer.com/${OLD_URL_PREFIX}/app/qiji/giftPackageShell`;
export const OLD_QIJI_HELP = `https://m.youyuer.com/${OLD_URL_PREFIX}/app/qiji/help`;
export const OLD_QIJI_COUPON_LIST = `https://m.youyuer.com/${OLD_URL_PREFIX}/app/qiji/couponList`;


export const COUPON_GIFT_SH = '56074552';
export const COUPON_GIFT_SHELL = '50000103';
export const COUPON_GIFT_MORE = '50017001';

let envPrefix = '';
if (process.env.NODE_ENV !== 'production') {
  envPrefix = `${OLD_URL_PREFIX}-`;
}
export const AUTH_ENTRY = `https://${envPrefix}n-gw.youyuer.com/user/all/user/auth`;
